
import request from '@/utils/request';

/**
 * 分页获取试题
 * @return
 */
export function listApi(params) {
    return request({
        url: '/admin/question/list',
        method: 'get',
        params
    });
}


// 新增
export function addApi(data: any) {
    return request({
        url: '/admin/question',
        method: 'post',
        data: data,
    });
}

// 修改
export function editApi(data: any) {
    return request({
        url: '/admin/question',
        method: 'put',
        data: data
    });
}

// 查询详细
export function findByIdApi(id: any) {
    return request({
        url: '/admin/question/' + id,
        method: 'get',
    });
}
